package kt.base


enum class EnumInterfaceClass(val enumParam: String) : EnumInterface {
    MON("星期一") {
        override fun interfaceFun() {
            println(enumParam)
        }

        override val interfaceParam: String
            get() = "1"
    },
    TUES("星期二") {
        override fun interfaceFun() {
            println(enumParam)
        }

        override val interfaceParam: String
            get() = "2"
    },
    WED("星期三") {
        override fun interfaceFun() {
            println(enumParam)
        }

        override val interfaceParam: String
            get() = "3"
    };//逗号隔开，分号结尾
}

interface EnumInterface {
    fun interfaceFun()
    val interfaceParam: String
}
